<template>
  <div class="avue-logo">
    <span class="cool-logo">
      <img class="mar-lr-5 w-40" :src="'/assets/img/app/main/' + logoConfig.topLeft" alt="">
      <img v-if="!isCollapse" class="w-140" :src="'/assets/img/app/main/' + logoConfig.topRight" alt="">
    </span>
    <span class="th-logo">
      <img class="mar-lr-5 w-30" :src="'/assets/img/app/main/' + logoConfig.topLeftTh" alt="">
      <img v-if="!isCollapse" class="w-115 mar-l-10" :src="'/assets/img/app/main/' + logoConfig.topRightTh" alt="">
    </span>
    <!-- <transition name="fade">
      <span v-if="keyCollapse"
            class="avue-logo_subtitle"
            key="0">
        {{website.logo}}
      </span>
    </transition>
    <transition-group name="fade">
      <template v-if="!keyCollapse">
        <span class="avue-logo_title"
              key="1">{{website.indexTitle}} </span>
      </template>
    </transition-group> -->
  </div>
</template>

<script>
import { mapGetters } from "vuex";
import logoConfig from '@/config/logo'
export default {
  name: "logo",
  data() {
    return {
      logoConfig: logoConfig
    };
  },
  created() {},
  computed: {
    ...mapGetters(["website", "keyCollapse" , "isCollapse"])
  },
  methods: {}
};
</script>

<style lang="scss">
.fade-leave-active {
  transition: opacity 0.2s;
}
.fade-enter-active {
  transition: opacity 2.5s;
}
.fade-enter,
.fade-leave-to {
  opacity: 0;
}
.avue-logo{
  img{
    // height: 30px;
    position: relative;
    top: -5px;
    // display: block;
    // margin: 0 auto;
    // height: 40px;
    // position: relative;
    // top: 4px;
  }
}
.theme-cool{
  .cool-logo{
    display: block;
  }
  .th-logo{
    display: none;
  }
  &.theme-th{
    .cool-logo{
      display: none;
    }
    .th-logo{
      display: block;
    }
    .w-30{
      width: 30px;
    }
    .w-115{
      width: 115px;
    }
    .mar-l-10{
      margin-left: 10px;
    }
  }
}
// .avue-logo {
//   position: fixed;
//   top: 0;
//   left: 0;
//   width: 240px;
//   height: 64px;
//   line-height: 64px;
//   background-color: #20222a;
//   font-size: 20px;
//   overflow: hidden;
//   box-sizing: border-box;
//   box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.15);
//   color: rgba(255, 255, 255, 0.8);
//   z-index: 1024;
//   &_title {
//     display: block;
//     text-align: center;
//     font-weight: 300;
//     font-size: 20px;
//   }
//   &_subtitle {
//     display: block;
//     text-align: center;
//     font-size: 18px;
//     font-weight: bold;
//     color: #fff;
//   }
// }
</style>